<!--%import("filter/manage_checked_document.xml")-->
<!--%import("js/document_admin.js")-->
<!--%import("css/document.css")-->
<div id="popHeader" class="wide">
    <h3 class="xeAdmin">{$lang->cmd_manage_document}</h3>
</div>

<form action="./" method="get" id="fo_management">
<input type="hidden" name="type" value="" />

<div id="popBody">
    <table cellspacing="0" class="rowTable">
    <tr>
        <th scope="row"><div><label for="textfield1">{$lang->checked_count} ({count($document_list)})</label></div></th>
        <td>
            <!--@if(count($document_list))-->
            <input type="checkbox" onclick="XE.checkboxToggleAll()" checked="checked"/> {$lang->cmd_select}
            <ul class="document_list_box">
                <!--@foreach($document_list as $key => $document)-->
                <li class="document_list"><input type="checkbox" checked="checked" name="cart" value="{$document->document_srl}" onclick="doAddDocumentCart(this);"/> <address>{$document->getNickName()}</address> <span class="document_title">{$document->getTitle()}</span></li>
                <!--@end-->
            </ul>
            <!--@else-->
                &nbsp;
            <!--@end-->
        </td>
    </tr>
    <!--@if(count($document_list))-->
    <tr>
        <th scope="row"><div>{$lang->move_target_module}</div></th>
        <td>
            <input type="hidden" name="target_module" id="target_module" value="" />
            <input type="text" name="_target_module" id="_target_module" class="inputTypeText w300" value="" readonly="readonly" /><a href="{getUrl('','module','module','act','dispModuleSelectList','id','target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_select}</span></a>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->category}</div></th>
        <td>
          <select id="target_category" name="target_category" class="w400">
          </select>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->cmd_send_message}</div></th>
        <td>
            <textarea name="message_content" class="inputTypeTextArea w400" cols="45" rows="5"></textarea>
        </td>
    </tr>
    <!--@end-->
    </table>
</div>

<!--@if(count($document_list))-->
<div id="popFooter">
    <a href="#" onclick="doManageDocument('delete');return false;" class="button black strong"><span>{$lang->cmd_delete}</span></a>
    <a href="#" onclick="doManageDocument('move');return false;" class="button blue"><span>{$lang->cmd_move}</span></a>
    <a href="#" onclick="doManageDocument('copy');return false;" class="button green"><span>{$lang->cmd_copy}</span></a>
</div>
<!--@end-->

<script type="text/javascript">
    jQuery(function() { doGetCategoryFromModule(jQuery('#target_module').get(0)); } );
</script>

</form>
